import Cookies from 'js-cookie'

const menuRoute = 'menu-router'

export function getRoute() {
    return Cookies.get(menuRoute)
}

export function setRoute(route) {
    return Cookies.set(menuRoute, route)
}

export function removeRoute() {
    return Cookies.remove(menuRoute)
}

const TOKEN = 'QTJ_TOKEN_2210'

export function getToken() {
    return localStorage.getItem(TOKEN)
}

export function setToken(token) {
    return localStorage.setItem(TOKEN, token)
}

export function removeToken() {
    return localStorage.removeItem(TOKEN)
}
